<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        // async 修饰的函数返回值 自动会变成promise对象
        async function fn() {
            // return 123;
        }

        function init() {
            const result = fn();
            console.log(result);
        }
        init();
    </script>
</body>

</html>